// 分享提示信息
class shareClewInfo extends egret.Sprite{
    public ON_CLOSE:string = "onClose";
    public constructor (){
        super();
        this.once(egret.Event.ADDED_TO_STAGE,this.onAdded,this);
        this.once(egret.Event.REMOVED_FROM_STAGE,this.onRemove,this);
    }
    private onRemove(){
        this.removeEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this);        
    }
    private onAdded(){
        this.addChild(MyLibrary.createBitmapByName("alphabg_png",false,StageData.W,StageData.H));
        let ui:egret.Bitmap = MyLibrary.createBitmapByName("fxtxt_png");
        ui.x = StageData.W - ui.width;
        ui.y = StageData.H-ui.height - 10;
        this.addChild(ui);
        this.touchEnabled = true;
        this.addEventListener(egret.TouchEvent.TOUCH_TAP,this.onClick,this);
    }
    private onClick(e:egret.TouchEvent){
        this.dispatchEventWith(this.ON_CLOSE);
    }
}